<template>
  <van-nav-bar
  title="标题"
  left-text="返回"
  right-text="按钮"
  left-arrow
  @click-left="onClickLeft"
  @click-right="onClickRight"
/>
</template>

<script>
import { Toast } from 'vant';
export default {
    methods: {
    onClickLeft() {
      this.$router.back()
    },
    onClickRight() {
      Toast('按钮');
    },
  },
}
</script>

<style lang="css" scoped>
.van-nav-bar{
height: 40px;
}
</style>